package com.kiki.searchlog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kiki.searchlog.mapper.SearchlogMapper;
import com.kiki.searchlog.domain.Searchlog;
import com.kiki.searchlog.service.ISearchlogService;

/**
 * 搜索结果日志Service业务层处理
 * 
 * @author 林志毅
 * @date 2025-02-19
 */
@Service
public class SearchlogServiceImpl implements ISearchlogService 
{
    @Autowired
    private SearchlogMapper searchlogMapper;

    /**
     * 查询搜索结果日志
     * 
     * @param logId 搜索结果日志主键
     * @return 搜索结果日志
     */
    @Override
    public Searchlog selectSearchlogByLogId(Long logId)
    {
        return searchlogMapper.selectSearchlogByLogId(logId);
    }

    /**
     * 查询搜索结果日志列表
     * 
     * @param searchlog 搜索结果日志
     * @return 搜索结果日志
     */
    @Override
    public List<Searchlog> selectSearchlogList(Searchlog searchlog)
    {
        return searchlogMapper.selectSearchlogList(searchlog);
    }

    /**
     * 新增搜索结果日志
     * 
     * @param searchlog 搜索结果日志
     * @return 结果
     */
    @Override
    public int insertSearchlog(Searchlog searchlog)
    {
        return searchlogMapper.insertSearchlog(searchlog);
    }

    /**
     * 修改搜索结果日志
     * 
     * @param searchlog 搜索结果日志
     * @return 结果
     */
    @Override
    public int updateSearchlog(Searchlog searchlog)
    {
        return searchlogMapper.updateSearchlog(searchlog);
    }

    /**
     * 批量删除搜索结果日志
     * 
     * @param logIds 需要删除的搜索结果日志主键
     * @return 结果
     */
    @Override
    public int deleteSearchlogByLogIds(Long[] logIds)
    {
        return searchlogMapper.deleteSearchlogByLogIds(logIds);
    }

    /**
     * 删除搜索结果日志信息
     * 
     * @param logId 搜索结果日志主键
     * @return 结果
     */
    @Override
    public int deleteSearchlogByLogId(Long logId)
    {
        return searchlogMapper.deleteSearchlogByLogId(logId);
    }
}
